<?php

namespace app\dao\portal;

use app\dao\BaseDao;
use app\model\portal\FacadeSchoolDesc;

class PortalShoolDescDao extends BaseDao
{

    // TODO: Implement setModel() method.
    public function index($where)
    {
        return $this ->getModel() ->withoutField('update_time,create_time')  ->where('website_id',$where['website_id']) -> find();
    }

    public function updateDao(array $where)
    {
        return $this -> getModel() ->update($where);
    }

    public function create(array $where)
    {
        unset($where['id']);
        return $this -> getModel() -> create($where);
    }

    protected function setModel(): string
    {
        return FacadeSchoolDesc::class;
    }
}